package com.dstz.demo.core.manager.impl;

import com.dstz.base.api.query.QueryFilter;
import com.dstz.base.manager.impl.BaseManager;
import com.dstz.demo.core.dao.PCompanyPersonnelStructureDao;
import com.dstz.demo.core.manager.PCompanyPersonnelStructureManager;
import com.dstz.demo.core.model.PCompanyPersonnelStructure;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 人员架构 Manager处理实现类
 * @author aschs
 * @email aschs@qq.com
 * @time 2019-11-30 20:28:20
 */
@Service("pCompanyPersonnelStructureManager")
public class PCompanyPersonnelStructureManagerImpl extends BaseManager<String, PCompanyPersonnelStructure> implements PCompanyPersonnelStructureManager {
	@Resource
	PCompanyPersonnelStructureDao pCompanyPersonnelStructureDao;

	@Override
	public void insertPCompanyPersonnelStructure(PCompanyPersonnelStructure pCompanyPersonnelStructure) {
		pCompanyPersonnelStructureDao.create(pCompanyPersonnelStructure);
	}

	@Override
	public List<PCompanyPersonnelStructure> selectPCompanyPersonnelStructure(QueryFilter queryFilter) {
		return pCompanyPersonnelStructureDao.query(queryFilter);
	}

	@Override
	public void deletePCompanyPersonnelStructure(String id) {
		pCompanyPersonnelStructureDao.remove(id);
	}

	@Override
	public void updatePCompanyPersonnelStructure(PCompanyPersonnelStructure pCompanyPersonnelStructure) {
		pCompanyPersonnelStructureDao.update(pCompanyPersonnelStructure);
	}
}
